<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="cn.com.oceansoft.nos.common.constant.Constant" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    String openId =request.getParameter("openId");
    String signature = request.getParameter("signature");
    if("".equals(openId)||null==openId){
        String[] s = signature.split("[?]");
        signature = s[0];
        openId = s[1].replace("openId=","");
    }
   // System.out.println(openId);
  //  System.out.println(signature);
    session.setAttribute("openId", openId);
    if("1".equals("1"))
    {
%>
<script type="text/javascript">
    window.location.href='<%=path%>/api/qrcode/gotoScan?signature=<%=signature%>'
</script>
<%
}
else
{
%>
<script type="text/javascript">
    window.location.href='<%=path%>/api/qrcode/gotoScan?signature=<%=signature%>'
</script>
<%
    }

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>My JSP 'openId.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
</head>

<body>
This is my JSP page. <br>
</body>
</html>
